BUUCTF-WEB [GXYCTF2019]StrongestMind 1

考点

python脚本编写

解题过程

打开

image-20211107152301088

解题脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import requests
import re

url = "http://89e87348-52e7-4e85-89b4-a42b94b8d0ac.node4.buuoj.cn:81/index.php"

req = requests.session()
res = req.get(url)
# print(res.text)

for i in range(1010):
import time
time.sleep(0.1)
res2 = re.findall(r'¦<br><br>(.+?)<br>', res.text)[0]
res = req.post(url, data={"answer": eval(res2)})
print(res.text)